package com.danco.planner.datasingleton;

import com.danco.planner.CoursesPlanner;
import com.danco.planner.plannerfromfiles.PlannerBuilder;

public class DataDirector {

	private static DataDirector sharedData;
	public static DataDirector getSharedData() {
		
		if (sharedData == null) {
			sharedData = new DataDirector();
		}
		return sharedData;
	}
	
	private CoursesPlanner planner;
	public CoursesPlanner getCoursesPlanner() {
		return planner;
	}
	
	private DataDirector() {
		super();
		
		planner = PlannerBuilder.getPlannerFromFiles();
	}

}
